Changeset 243386 in webkit


Ignore:
Timestamp:
Mar 22, 2019 10:21:37 AM (5 years ago)
Author:
mark.lam@apple.com
Message:

Placate exception check validation in constructJSWebAssemblyLinkError().
https://bugs.webkit.org/show_bug.cgi?id=196152
<rdar://problem/49145257>

Reviewed by Michael Saboff.

JSTests:

  • stress/web-assembly-link-error-exception-check.js: Added.

Source/JavaScriptCore:

  • wasm/js/WebAssemblyLinkErrorConstructor.cpp:

(JSC::constructJSWebAssemblyLinkError):

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r243366 r243386  
     12019-03-22  Mark Lam  <mark.lam@apple.com>
     2
     3        Placate exception check validation in constructJSWebAssemblyLinkError().
     4        https://bugs.webkit.org/show_bug.cgi?id=196152
     5        <rdar://problem/49145257>
     6
     7        Reviewed by Michael Saboff.
     8
     9        * stress/web-assembly-link-error-exception-check.js: Added.
     10
    1112019-03-22  Dominik Infuehr  <dinfuehr@igalia.com>
    212
  • trunk/Source/JavaScriptCore/ChangeLog

    r243376 r243386  
     12019-03-22  Mark Lam  <mark.lam@apple.com>
     2
     3        Placate exception check validation in constructJSWebAssemblyLinkError().
     4        https://bugs.webkit.org/show_bug.cgi?id=196152
     5        <rdar://problem/49145257>
     6
     7        Reviewed by Michael Saboff.
     8
     9        * wasm/js/WebAssemblyLinkErrorConstructor.cpp:
     10        (JSC::constructJSWebAssemblyLinkError):
     11
    1122019-03-22  Timothy Hatcher  <timothy@apple.com>
    213
  • trunk/Source/JavaScriptCore/wasm/js/WebAssemblyLinkErrorConstructor.cpp

    r243051 r243386  
    11/*
    2  * Copyright (C) 2016-2017 Apple Inc. All rights reserved.
     2 * Copyright (C) 2016-2019 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    5252    auto* structure = InternalFunction::createSubclassStructure(exec, exec->newTarget(), jsCast<InternalFunction*>(exec->jsCallee())->globalObject(vm)->webAssemblyLinkErrorStructure());
    5353    RETURN_IF_EXCEPTION(scope, encodedJSValue());
    54     return JSValue::encode(JSWebAssemblyLinkError::create(exec, vm, structure, message));
     54    RELEASE_AND_RETURN(scope, JSValue::encode(JSWebAssemblyLinkError::create(exec, vm, structure, message)));
    5555}
    5656
Note: See TracChangeset for help on using the changeset viewer.