It is okay to turn undefined into null because we are producing values for a
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 10 Dec 2016 06:04:28 +0000 (06:04 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 10 Dec 2016 06:04:28 +0000 (06:04 +0000)
commitbdb98f95be445be01ac845894a518efd5a5ed6fd
treebb9634103760dd5a70f88446b840020cd840bd22
parentd0fe5fd1de35cc06db27a999f6813b3297ee294a
It is okay to turn undefined into null because we are producing values for a
JSON representation (InspectorValue) and JSON has a `null` value and no
`undefined` value.
https://bugs.webkit.org/show_bug.cgi?id=165506

Patch by Karim H <karim@karhm.com> on 2016-12-09
Reviewed by Darin Adler.

* bindings/ScriptValue.cpp:
(Inspector::jsToInspectorValue):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209650 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bindings/ScriptValue.cpp