WebKit Bugzilla
Attachment 371211 Details for
Bug 198495
: Date.prototype.toJSON throws if toISOString returns an object
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-198495-20190604002301.patch (text/plain), 1.35 KB, created by
Alexey Shvayka
on 2019-06-03 14:23:02 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Alexey Shvayka
Created:
2019-06-03 14:23:02 PDT
Size:
1.35 KB
patch
obsolete
>Index: Source/JavaScriptCore/ChangeLog >=================================================================== >--- Source/JavaScriptCore/ChangeLog (revision 246047) >+++ Source/JavaScriptCore/ChangeLog (working copy) >@@ -1,3 +1,15 @@ >+2019-06-03 Aleksey Shvayka <shvaikalesh@gmail.com> >+ >+ Date.prototype.toJSON throws if toISOString returns an object >+ https://bugs.webkit.org/show_bug.cgi?id=198495 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Don't throw TypeError if result of toISOString call is not a primitive. >+ >+ * runtime/DatePrototype.cpp: >+ (JSC::dateProtoFuncToJSON): Remove isObject check. >+ > 2019-06-03 Caio Lima <ticaiolima@gmail.com> > > [ESNext][BigInt] Implement support for "**" >Index: Source/JavaScriptCore/runtime/DatePrototype.cpp >=================================================================== >--- Source/JavaScriptCore/runtime/DatePrototype.cpp (revision 246044) >+++ Source/JavaScriptCore/runtime/DatePrototype.cpp (working copy) >@@ -1163,8 +1163,6 @@ EncodedJSValue JSC_HOST_CALL dateProtoFu > > JSValue result = call(exec, asObject(toISOValue), callType, callData, object, *vm.emptyList); > RETURN_IF_EXCEPTION(scope, encodedJSValue()); >- if (result.isObject()) >- return throwVMTypeError(exec, scope, "toISOString did not return a primitive value"_s); > return JSValue::encode(result); > } >
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 198495
:
371211
|
371218
|
371219
|
371222
|
371223
|
371226
|
371240
|
371255
|
371260
|
371390
|
372363
|
376709