-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
9,841 additions
and
15,224 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
registry=https://registry.npm.taobao.org | ||
disturl=https://npm.taobao.org/mirrors/node/ | ||
sass_binary_site=http://npm.taobao.org/mirrors/node-sass/ | ||
phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/ | ||
profiler_binary_host_mirror=https://npm.taobao.org/mirrors/node-inspector/ | ||
fse_binary_host_mirror=https://npm.taobao.org/mirrors/fsevents/ | ||
chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver/ | ||
selenium_cdnurl=http://npm.taobao.org/mirrorss/selenium/ | ||
electron_mirror=https://npm.taobao.org/mirrors/electron/ | ||
registry=https://registry.npmmirror.com | ||
disturl=https://npmmirror.com/mirrors/node/ | ||
sass_binary_site=http://npmmirror.com/mirrors/node-sass/ | ||
phantomjs_cdnurl=https://npmmirror.com/mirrors/phantomjs/ | ||
profiler_binary_host_mirror=https://npmmirror.com/mirrors/node-inspector/ | ||
fse_binary_host_mirror=https://npmmirror.com/mirrors/fsevents/ | ||
chromedriver_cdnurl=http://npmmirror.com/mirrors/chromedriver/ | ||
selenium_cdnurl=http://npmmirror.com/mirrorss/selenium/ | ||
electron_mirror=https://npmmirror.com/mirrors/electron/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
14 | ||
16 |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
const { transform } = require('../lib/compiler'); | ||
const { XYZ } = require('../lib/vm/vm'); | ||
// const { XYZ } = require('../dist'); | ||
const { JSVM } = require('../lib/vm/vm'); | ||
// const { JSVM } = require('../dist'); | ||
const code = require('fs').readFileSync(require('path').join(__dirname, './benchmark.js'), 'utf-8'); | ||
const script = transform(code, 'sum.js', { hoisting: true, convertES5: false }); | ||
|
||
const vm1 = new XYZ({ | ||
const vm1 = new JSVM({ | ||
console, | ||
require, | ||
}); | ||
|
||
vm1.go(script); | ||
vm1.exec(script); |
Oops, something went wrong.