File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ const fetch = require ( 'node-fetch' ) ;
4+
5+ module . exports = ( req , res ) => fetch ( 'https://raw.githubusercontent.com/engine262/engine262/gh-pages/engine262.js' )
6+ . then ( ( r ) => r . text ( ) )
7+ . then ( ( body ) => {
8+ res . writeHead ( 200 , { 'Content-Type' : 'text/javascript' } ) ;
9+ return res . end ( body ) ;
10+ } )
11+ . catch ( ( e ) => {
12+ res . writeHead ( 500 ) ;
13+ return res . end ( e . message ) ;
14+ } ) ;
Original file line number Diff line number Diff line change 55 {
66 "src" : " /api/gist" ,
77 "dest" : " /api/gist.js"
8+ },
9+ {
10+ "src" : " /engine262/engine262.js" ,
11+ "dest" : " /api/bridge.js"
812 }
913 ],
1014 "env" : {
Original file line number Diff line number Diff line change 55
66importScripts ( 'https://unpkg.com/acorn@7.0.0/dist/acorn.js' ) ;
77importScripts ( 'https://unpkg.com/nearley@2.16.0/lib/nearley.js' ) ;
8- importScripts ( `https://engine262.js.org /engine262/engine262.js?_=${ Date . now ( ) } ` ) ;
8+ importScripts ( `/engine262/engine262.js?_=${ Date . now ( ) } ` ) ;
99
1010const {
1111 initializeAgent,
You can’t perform that action at this time.
0 commit comments