Changeset 235558 in webkit
- Timestamp:
- Aug 31, 2018, 10:12:32 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
-
JSTests/ChangeLog (modified) (1 diff)
-
JSTests/stress/regress-189185.js (added)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/wasm/js/JSWebAssemblyModule.cpp (modified) (1 diff)
-
Source/JavaScriptCore/wasm/js/WebAssemblyCompileErrorConstructor.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r235554 r235558 1 2018-08-31 Mark Lam <mark.lam@apple.com> 2 3 Fix exception check accounting in constructJSWebAssemblyCompileError(). 4 https://bugs.webkit.org/show_bug.cgi?id=189185 5 <rdar://problem/39786007> 6 7 Reviewed by Michael Saboff. 8 9 * stress/regress-189185.js: Added. 10 (new.WebAssembly.CompileError.valueOf): 11 1 12 2018-08-31 Mark Lam <mark.lam@apple.com> 2 13 -
trunk/Source/JavaScriptCore/ChangeLog
r235557 r235558 1 2018-08-31 Mark Lam <mark.lam@apple.com> 2 3 Fix exception check accounting in constructJSWebAssemblyCompileError(). 4 https://bugs.webkit.org/show_bug.cgi?id=189185 5 <rdar://problem/39786007> 6 7 Reviewed by Michael Saboff. 8 9 Also add an exception check in JSWebAssemblyModule::createStub() so that we don't 10 inadvertently overwrite a pre-existing exception (if present). 11 12 * wasm/js/JSWebAssemblyModule.cpp: 13 (JSC::JSWebAssemblyModule::createStub): 14 * wasm/js/WebAssemblyCompileErrorConstructor.cpp: 15 (JSC::constructJSWebAssemblyCompileError): 16 1 17 2018-08-31 Mark Lam <mark.lam@apple.com> 2 18 -
trunk/Source/JavaScriptCore/wasm/js/JSWebAssemblyModule.cpp
r235420 r235558 49 49 auto scope = DECLARE_THROW_SCOPE(vm); 50 50 if (!result.has_value()) { 51 throwException(exec, scope, JSWebAssemblyCompileError::create(exec, vm, structure->globalObject()->WebAssemblyCompileErrorStructure(), result.error())); 51 auto* error = JSWebAssemblyCompileError::create(exec, vm, structure->globalObject()->WebAssemblyCompileErrorStructure(), result.error()); 52 RETURN_IF_EXCEPTION(scope, nullptr); 53 throwException(exec, scope, error); 52 54 return nullptr; 53 55 } -
trunk/Source/JavaScriptCore/wasm/js/WebAssemblyCompileErrorConstructor.cpp
r233122 r235558 52 52 auto* structure = InternalFunction::createSubclassStructure(exec, exec->newTarget(), jsCast<InternalFunction*>(exec->jsCallee())->globalObject(vm)->WebAssemblyCompileErrorStructure()); 53 53 RETURN_IF_EXCEPTION(scope, encodedJSValue()); 54 scope.release(); 54 55 return JSValue::encode(JSWebAssemblyCompileError::create(exec, vm, structure, message)); 55 56 }
Note:
See TracChangeset
for help on using the changeset viewer.