Fix: test-debug.cc: don't misuse C++.

The test in question (test-debug/LiveEditEnabled) is expected to fail, and it
failed, but because of the wrong reason (the test asserts that the default
isolate is not initialized, SetLiveEditEnabled initialized the default
isolate because it doesn't get one as param). Now it fails because of the right
reason.

R=ulan@chromium.org
BUG=

Review URL: https://codereview.chromium.org/99043004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18203 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
marja@chromium.org 2013-12-02 15:41:57 +00:00
parent de96489df8
commit 54dfe36519

View File

@ -7728,7 +7728,7 @@ TEST(LiveEditDisabled) {
v8::internal::FLAG_allow_natives_syntax = true;
LocalContext env;
v8::HandleScope scope(env->GetIsolate());
v8::Debug::SetLiveEditEnabled(false), env->GetIsolate();
v8::Debug::SetLiveEditEnabled(false, env->GetIsolate());
CompileRun("%LiveEditCompareStrings('', '')");
}