Skip to content

Commit 7729ba7

Browse files
committed
Fix “Benchmark.Suite is not a constructor”
1 parent c84d86d commit 7729ba7

File tree

2 files changed

+1760
-1
lines changed

2 files changed

+1760
-1
lines changed

gulpfile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ gulp.task('js', function() {
5555
))
5656
.pipe(replace('root.platform = parse()', 'platform = parse()'))
5757
.pipe(replace('var _ = runInContext()', '_ = runInContext()'))
58+
.pipe(replace('var _ = context && context._ || require(\'lodash\') || root._;', ''))
5859
.pipe(replace('(freeWindow || freeSelf || {})._ = _', ''))
5960
.pipe(replace('root._ = _', ''))
6061

@@ -78,7 +79,7 @@ gulp.task('assets', function() {
7879
'requestOptions': requestOptions
7980
}
8081
)
81-
.pipe(replace('<script src="../../node_modules/lodash/index.js"></script>', ''))
82+
.pipe(replace('<script src="../../node_modules/lodash/lodash.js"></script>', ''))
8283
.pipe(replace('<script src="../../node_modules/platform/platform.js"></script>', ''))
8384
.pipe(replace('<script src="../../benchmark.js"></script>', ''))
8485
.pipe(replace('<script src="ui.js"></script>', ''))

0 commit comments

Comments
 (0)