For super calls to work in IE9, you must enable "loose" mode for the class transform. For inherited static properties to work in IE9, you must also add the babel-plugin-transform-proto-to-assign
plugin.
This file contains hidden or 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
/** | |
* Usage: | |
* | |
* node -r this_file.js module_to_load.js | |
*/ | |
'use strict'; | |
var path = require('path'); | |
var Module = require('module').Module; | |
var _load = Module._load; |
This file contains hidden or 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
Show hidden characters
{ | |
"plugins": [ | |
"transform-async-to-generator", | |
"transform-strict-mode" | |
] | |
} |
This file contains hidden or 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 bar() { | |
return 1; | |
} | |
async function foo() { | |
let out = await bar(); | |
return out.toString(); | |
} | |
foo(); |
This file contains hidden or 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
#!/usr/bin/env node | |
'use strict'; | |
// npm install stats-lite | |
// export PATH="/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources:$PATH" | |
// ./node_modules/.bin/grunt build | |
// node load-benchmark.js | |
const {spawnSync} = require('child_process'); | |
const stats = require('stats-lite'); |
This file contains hidden or 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
.DS_Store | |
/node_modules |
This file contains hidden or 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
[include] | |
[ignore] | |
.*/node_modules/react/.* | |
.*/node_modules/react-dom/.* | |
[libs] | |
./react-flow.js | |
[options] |
./node_modules/.bin/browserify -t [ babelify --plugins [ transform-flow-strip-types ] ] entry.js
This file contains hidden or 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
/node_modules |
This file contains hidden or 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
#!/usr/bin/env node | |
"use strict"; | |
const stream = require("readable-stream"); | |
const duplexer2 = require("duplexer2"); | |
const writable = new class extends stream.Writable { | |
constructor() { |
NewerOlder