mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-25 07:22:33 -05:00
20 lines
657 B
JavaScript
20 lines
657 B
JavaScript
|
/**
|
||
|
* @fileoverview
|
||
|
* Access point for private method shared between blocks.js and execute.js for
|
||
|
* caching execute information.
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* A private method shared with execute to build an object containing the block
|
||
|
* information execute needs and that is reset when other cached Blocks info is
|
||
|
* reset.
|
||
|
* @param {Blocks} blocks Blocks containing the expected blockId
|
||
|
* @param {string} blockId blockId for the desired execute cache
|
||
|
*/
|
||
|
exports.getCached = function () {
|
||
|
throw new Error('blocks.js has not initialized BlocksExecuteCache');
|
||
|
};
|
||
|
|
||
|
// Call after the default throwing getCached is assigned for Blocks to replace.
|
||
|
require('./blocks');
|