mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
533 B
30 lines
533 B
summary: when ES2015 __proto__ enabled, JSON.parse() parses '__proto__' property incorrectly when a specially crafted reviver is used
|
|
---
|
|
basic case
|
|
[object Object]
|
|
object
|
|
true
|
|
false
|
|
true
|
|
[object Object]
|
|
reviver case
|
|
reviver: __proto__
|
|
reviver:
|
|
[object Object]
|
|
object
|
|
true
|
|
false
|
|
true
|
|
[object Object]
|
|
complex reviver case
|
|
reviver: foo [object Object] bar
|
|
before: this.__proto__: [object Object]
|
|
after: this.__proto__: undefined
|
|
reviver: __proto__ undefined [object Object]
|
|
reviver: [object Object]
|
|
|
|
object
|
|
true
|
|
true
|
|
true
|
|
undefined
|
|
|