• franzih's avatar
    Fix Object.prototype.toString() when @@toStringTag is not a string. · bdc78957
    franzih authored
    ES2017 draft 19.1.3.6: If @@toStringTag is not a string, Object.prototype.toString()
    returns [object Object], except in the following cases:
     - Array
     - String
     - Arguments
     - Function
     - Error
     - Boolean
     - Number
     - Date
     - RegExp.
    
    For anything else, e.g., Maps, Sets, TypedArrays, or the global object, toString() returns
    [object Object] if @@toStringTag is absent or not a string. In order to be able to
    easily identify the global object in d8, we set @@toStringTag to "global"
    for d8.
    
    CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel
    BUG=
    
    Review-Url: https://codereview.chromium.org/2071343002
    Cr-Commit-Position: refs/heads/master@{#37218}
    bdc78957
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
fuzzer Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
ignition.gyp Loading commit data...
ignition.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...