OLD | NEW |
1 The files in this directory polyfill some of the functionality that browsers | 1 The files in this directory polyfill some of the functionality that browsers |
2 provide. When running command-line JS evaluators it is frequently necessary to | 2 provide. When running command-line JS evaluators it is frequently necessary to |
3 execute the preambles before executing the output of dart2js. | 3 execute the preambles before executing the output of dart2js. |
4 | 4 |
5 =Usage= | 5 =Usage= |
6 - d8: | 6 - d8: |
7 d8 <sdk>/lib/_internal/lib/preambles/d8.js <output>.js | 7 d8 <sdk>/lib/_internal/compiler/js_lib/preambles/d8.js <output>.js |
8 | 8 |
9 - jsshell: | 9 - jsshell: |
10 jsshell -f <sdk>/lib/_internal/lib/preambles/d8.js -f <output>.js | 10 jsshell -f <sdk>/lib/_internal/compiler/js_lib/preambles/d8.js -f <output>.j
s |
11 | 11 |
12 - node.js: | 12 - node.js: |
13 The d8 preamble file works for most programs. | 13 The d8 preamble file works for most programs. |
14 | 14 |
15 Unfortunately we are not aware of any easy way to provide multiple input files | 15 Unfortunately we are not aware of any easy way to provide multiple input files |
16 to node. It seems to be necessary to concatenate the d8 preamble and the | 16 to node. It seems to be necessary to concatenate the d8 preamble and the |
17 dart2js output. | 17 dart2js output. |
OLD | NEW |