diff options
Diffstat (limited to 'js/src/jsapi-tests/testFrontendErrors.cpp')
-rw-r--r-- | js/src/jsapi-tests/testFrontendErrors.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/src/jsapi-tests/testFrontendErrors.cpp b/js/src/jsapi-tests/testFrontendErrors.cpp index c9d3ee1eb5..47acf559d7 100644 --- a/js/src/jsapi-tests/testFrontendErrors.cpp +++ b/js/src/jsapi-tests/testFrontendErrors.cpp @@ -51,9 +51,8 @@ BEGIN_TEST(testFrontendErrors_error) { JS::SourceText<mozilla::Utf8Unit> srcBuf; CHECK( srcBuf.init(fc, source, strlen(source), JS::SourceOwnership::Borrowed)); - JS::CompilationStorage compileStorage; RefPtr<JS::Stencil> stencil = - JS::CompileGlobalScriptToStencil(fc, options, srcBuf, compileStorage); + JS::CompileGlobalScriptToStencil(fc, options, srcBuf); CHECK(!stencil); } @@ -133,9 +132,8 @@ BEGIN_TEST(testFrontendErrors_warning) { JS::SourceText<mozilla::Utf8Unit> srcBuf; CHECK( srcBuf.init(fc, source, strlen(source), JS::SourceOwnership::Borrowed)); - JS::CompilationStorage compileStorage; RefPtr<JS::Stencil> stencil = - JS::CompileGlobalScriptToStencil(fc, options, srcBuf, compileStorage); + JS::CompileGlobalScriptToStencil(fc, options, srcBuf); CHECK(stencil); } |