-
-
Save LCamel/7978b9a807d6408b612fbf4585d28271 to your computer and use it in GitHub Desktop.
typeof null
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function f() { return typeof null === "object"; } | |
console.log(f()); | |
// for (var i = 0; i < 10000; i++) f(); | |
%OptimizeFunctionOnNextCall(f); | |
console.log(f()); | |
console.log(process.versions.v8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for v in v4.2.5 v4.2.6 v4.3.0 v4.3.1 v4.3.2 v4.4.0 v4.4.1 v4.4.2 v4.4.3 v4.4.4 v4.4.5 v5.0.0 v5.1.0 v5.1.1 v5.2.0 v5.3.0 v5.4.0 v5.4.1 v5.5.0 v5.6.0 v5.7.0 v5.7.1 v5.8.0 v5.9.0 v5.9.1 v5.10.0 v5.10.1 v5.11.0 v5.11.1 v6.0.0 v6.1.0 v6.2.0 v6.2.1 v6.2.2 ; do | |
echo === $v === | |
# wget -q https://nodejs.org/dist/$v/node-$v-linux-x64.tar.gz | |
# tar zxpf node-$v-linux-x64.tar.gz | |
node-$v-linux-x64/bin/node --allow-natives-syntax a.js | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== v4.2.5 === | |
true | |
true | |
4.5.103.35 | |
=== v4.2.6 === | |
true | |
true | |
4.5.103.35 | |
=== v4.3.0 === | |
true | |
true | |
4.5.103.35 | |
=== v4.3.1 === | |
true | |
true | |
4.5.103.35 | |
=== v4.3.2 === | |
true | |
true | |
4.5.103.35 | |
=== v4.4.0 === | |
true | |
true | |
4.5.103.35 | |
=== v4.4.1 === | |
true | |
true | |
4.5.103.35 | |
=== v4.4.2 === | |
true | |
true | |
4.5.103.35 | |
=== v4.4.3 === | |
true | |
true | |
4.5.103.35 | |
=== v4.4.4 === | |
true | |
true | |
4.5.103.35 | |
=== v4.4.5 === | |
true | |
true | |
4.5.103.35 | |
=== v5.0.0 === | |
true | |
true | |
4.6.85.28 | |
=== v5.1.0 === | |
true | |
true | |
4.6.85.31 | |
=== v5.1.1 === | |
true | |
true | |
4.6.85.31 | |
=== v5.2.0 === | |
true | |
true | |
4.6.85.31 | |
=== v5.3.0 === | |
true | |
true | |
4.6.85.31 | |
=== v5.4.0 === | |
true | |
true | |
4.6.85.31 | |
=== v5.4.1 === | |
true | |
true | |
4.6.85.31 | |
=== v5.5.0 === | |
true | |
true | |
4.6.85.31 | |
=== v5.6.0 === | |
true | |
true | |
4.6.85.31 | |
=== v5.7.0 === | |
true | |
true | |
4.6.85.31 | |
=== v5.7.1 === | |
true | |
true | |
4.6.85.31 | |
=== v5.8.0 === | |
true | |
true | |
4.6.85.31 | |
=== v5.9.0 === | |
true | |
true | |
4.6.85.31 | |
=== v5.9.1 === | |
true | |
true | |
4.6.85.31 | |
=== v5.10.0 === | |
true | |
true | |
4.6.85.31 | |
=== v5.10.1 === | |
true | |
true | |
4.6.85.31 | |
=== v5.11.0 === | |
true | |
true | |
4.6.85.31 | |
=== v5.11.1 === | |
true | |
true | |
4.6.85.31 | |
=== v6.0.0 === | |
true | |
false | |
5.0.71.35 | |
=== v6.1.0 === | |
true | |
false | |
5.0.71.35 | |
=== v6.2.0 === | |
true | |
false | |
5.0.71.47 | |
=== v6.2.1 === | |
true | |
false | |
5.0.71.52 | |
=== v6.2.2 === | |
true | |
false | |
5.0.71.52 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment