完成世界书、骰子、apiconfig页面处理
This commit is contained in:
1
frontend/node_modules/@chevrotain/utils/lib/src/api.js.map
generated
vendored
Normal file
1
frontend/node_modules/@chevrotain/utils/lib/src/api.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC"}
|
||||
24
frontend/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js
generated
vendored
Normal file
24
frontend/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// based on: https://github.com/petkaantonov/bluebird/blob/b97c0d2d487e8c5076e8bd897e0dcd4622d31846/src/util.js#L201-L216
|
||||
export function toFastProperties(toBecomeFast) {
|
||||
function FakeConstructor() { }
|
||||
// If our object is used as a constructor, it would receive
|
||||
FakeConstructor.prototype = toBecomeFast;
|
||||
const fakeInstance = new FakeConstructor();
|
||||
function fakeAccess() {
|
||||
return typeof fakeInstance.bar;
|
||||
}
|
||||
// help V8 understand this is a "real" prototype by actually using
|
||||
// the fake instance.
|
||||
fakeAccess();
|
||||
fakeAccess();
|
||||
// Always true condition to suppress the Firefox warning of unreachable
|
||||
// code after a return statement.
|
||||
if (1)
|
||||
return toBecomeFast;
|
||||
// Eval prevents optimization of this method (even though this is dead code)
|
||||
// - https://esbuild.github.io/content-types/#direct-eval
|
||||
/* istanbul ignore next */
|
||||
// tslint:disable-next-line
|
||||
(0, eval)(toBecomeFast);
|
||||
}
|
||||
//# sourceMappingURL=to-fast-properties.js.map
|
||||
7
frontend/node_modules/@chevrotain/utils/src/timer.ts
generated
vendored
Normal file
7
frontend/node_modules/@chevrotain/utils/src/timer.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export function timer<T>(func: () => T): { time: number; value: T } {
|
||||
const start = new Date().getTime();
|
||||
const val = func();
|
||||
const end = new Date().getTime();
|
||||
const total = end - start;
|
||||
return { time: total, value: val };
|
||||
}
|
||||
Reference in New Issue
Block a user