mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Merge pull request #4093 from scratchfoundation/revert-4092-disable-metadata
Revert "fix: disable metadata for now"
This commit is contained in:
commit
fea4fe123b
2 changed files with 5 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
||||||
const EventEmitter = require('events');
|
const EventEmitter = require('events');
|
||||||
const {OrderedMap} = require('immutable');
|
const {OrderedMap} = require('immutable');
|
||||||
// const uuid = require('uuid');
|
const uuid = require('uuid');
|
||||||
|
|
||||||
const ArgumentType = require('../extension-support/argument-type');
|
const ArgumentType = require('../extension-support/argument-type');
|
||||||
const Blocks = require('./blocks');
|
const Blocks = require('./blocks');
|
||||||
|
@ -2032,9 +2032,8 @@ class Runtime extends EventEmitter {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: re-enable metadata
|
const newRunId = uuid.v1();
|
||||||
// const newRunId = uuid.v1();
|
this.storage.scratchFetch.setMetadata(this.storage.scratchFetch.RequestMetadata.RunId, newRunId);
|
||||||
// this.storage.scratchFetch.setMetadata(this.storage.scratchFetch.RequestMetadata.RunId, newRunId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const Worker = require('tiny-worker');
|
const Worker = require('tiny-worker');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const test = require('tap');
|
const test = require('tap').test;
|
||||||
|
|
||||||
const VirtualMachine = require('../../src/index');
|
const VirtualMachine = require('../../src/index');
|
||||||
const dispatch = require('../../src/dispatch/central-dispatch');
|
const dispatch = require('../../src/dispatch/central-dispatch');
|
||||||
|
@ -15,8 +15,7 @@ const project = readFileToBuffer(uri);
|
||||||
// By default Central Dispatch works with the Worker class built into the browser. Tell it to use TinyWorker instead.
|
// By default Central Dispatch works with the Worker class built into the browser. Tell it to use TinyWorker instead.
|
||||||
dispatch.workerClass = Worker;
|
dispatch.workerClass = Worker;
|
||||||
|
|
||||||
// TODO: re-enable metadata
|
test('runId', async t => {
|
||||||
test.skip('runId', async t => {
|
|
||||||
const guidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
const guidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
||||||
const isGuid = data => guidRegex.test(data);
|
const isGuid = data => guidRegex.test(data);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue