summaryrefslogtreecommitdiffstats
path: root/webkit/tools
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools')
-rw-r--r--webkit/tools/test_shell/test_shell_main.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/test_shell_main.cc b/webkit/tools/test_shell/test_shell_main.cc
index 5d43e0b..d1f0c58 100644
--- a/webkit/tools/test_shell/test_shell_main.cc
+++ b/webkit/tools/test_shell/test_shell_main.cc
@@ -280,14 +280,15 @@ int main(int argc, char* argv[]) {
flags = js_flags.substr(start, comma_pos - start);
start = comma_pos + 1;
}
- // Test shell always exposes the GC.
- flags += " --expose-gc";
js_flags_list.push_back(flags);
if (comma_pos == std::string::npos)
break;
}
TestShell::SetJavaScriptFlags(js_flags_list);
+ // Test shell always exposes the GC.
+ webkit_glue::SetJavaScriptFlags("--expose-gc");
+
// Expose GCController to JavaScript.
WebScriptController::registerExtension(extensions_v8::GCExtension::Get());