WebKit Bugzilla
Attachment 368745 Details for
Bug 197485
: ASSERTION FAILED: !m_needExceptionCheck with --validateExceptionChecks=1; ProxyObject.getOwnPropertySlotCommon/JSFunction.callerGetter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch responding to review comments
197485-2.patch (text/plain), 3.33 KB, created by
Michael Saboff
on 2019-05-01 18:24:26 PDT
(
hide
)
Description:
Updated patch responding to review comments
Filename:
MIME Type:
Creator:
Michael Saboff
Created:
2019-05-01 18:24:26 PDT
Size:
3.33 KB
patch
obsolete
>Index: JSTests/ChangeLog >=================================================================== >--- JSTests/ChangeLog (revision 244861) >+++ JSTests/ChangeLog (working copy) >@@ -1,3 +1,15 @@ >+2019-05-01 Michael Saboff <msaboff@apple.com> >+ >+ ASSERTION FAILED: !m_needExceptionCheck with --validateExceptionChecks=1; ProxyObject.getOwnPropertySlotCommon/JSFunction.callerGetter >+ https://bugs.webkit.org/show_bug.cgi?id=197485 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ New test. >+ >+ * stress/proxy-getOwnPropertySlots-exceptionChecks.js: Added. >+ (foo): >+ > 2019-05-01 Ross Kirsling <ross.kirsling@sony.com> > > Unreviewed correction to Test262 expectations following r244828. >Index: JSTests/stress/proxy-getOwnPropertySlots-exceptionChecks.js >=================================================================== >--- JSTests/stress/proxy-getOwnPropertySlots-exceptionChecks.js (nonexistent) >+++ JSTests/stress/proxy-getOwnPropertySlots-exceptionChecks.js (working copy) >@@ -0,0 +1,9 @@ >+//@ runWithoutBaseOption("default", "--validateExceptionChecks=1") >+ >+// This test that we have appropriate exception check processing Proxy.getOwnPropertySlots >+ >+function foo() >+{ >+} >+ >+let a = {...new Proxy(foo, {})} >Index: Source/JavaScriptCore/ChangeLog >=================================================================== >--- Source/JavaScriptCore/ChangeLog (revision 244848) >+++ Source/JavaScriptCore/ChangeLog (working copy) >@@ -1,3 +1,15 @@ >+2019-05-01 Michael Saboff <msaboff@apple.com> >+ >+ ASSERTION FAILED: !m_needExceptionCheck with --validateExceptionChecks=1; ProxyObject.getOwnPropertySlotCommon/JSFunction.callerGetter >+ https://bugs.webkit.org/show_bug.cgi?id=197485 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Added an EXCEPTION_ASSERT after call to getOwnPropertySlot(). >+ >+ * runtime/JSObject.cpp: >+ (JSC::JSObject::getOwnPropertyDescriptor): >+ > 2019-05-01 Darin Adler <darin@apple.com> > > WebKit has too much of its own UTF-8 code and should rely more on ICU's UTF-8 support >Index: Source/JavaScriptCore/runtime/JSObject.cpp >=================================================================== >--- Source/JavaScriptCore/runtime/JSObject.cpp (revision 244848) >+++ Source/JavaScriptCore/runtime/JSObject.cpp (working copy) >@@ -3441,9 +3441,12 @@ static JSCustomGetterSetterFunction* get > bool JSObject::getOwnPropertyDescriptor(ExecState* exec, PropertyName propertyName, PropertyDescriptor& descriptor) > { > VM& vm = exec->vm(); >+ auto scope = DECLARE_THROW_SCOPE(vm); >+ > JSC::PropertySlot slot(this, PropertySlot::InternalMethodType::GetOwnProperty); > if (!methodTable(vm)->getOwnPropertySlot(this, exec, propertyName, slot)) > return false; >+ EXCEPTION_ASSERT(!scope.exception()); > > // DebuggerScope::getOwnPropertySlot() (and possibly others) may return attributes from the prototype chain > // but getOwnPropertyDescriptor() should only work for 'own' properties so we exit early if we detect that >@@ -3490,6 +3493,8 @@ bool JSObject::getOwnPropertyDescriptor( > descriptor.setSetter(getCustomGetterSetterFunctionForGetterSetter(exec, propertyName, getterSetter, JSCustomGetterSetterFunction::Type::Setter)); > } else > descriptor.setDescriptor(slot.getValue(exec, propertyName), slot.attributes()); >+ >+ RETURN_IF_EXCEPTION(scope, false); > return true; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 197485
:
368740
|
368745
|
368747