MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / takeGlobalQueue

Function takeGlobalQueue

public/javascripts/require.js:554–564  ·  view source on GitHub ↗

* Internal method to transfer globalQueue items to this context's * defQueue.

()

Source from the content-addressed store, hash-verified

552 * defQueue.
553 */
554 function takeGlobalQueue() {
555 //Push all the globalDefQueue items into the context's defQueue
556 if (globalDefQueue.length) {
557 //Array splice in the values since the context code has a
558 //local var ref to defQueue, so cannot just reassign the one
559 //on context.
560 apsp.apply(defQueue,
561 [defQueue.length, 0].concat(globalDefQueue));
562 globalDefQueue = [];
563 }
564 }
565
566 handlers = {
567 'require': function (mod) {

Callers 2

intakeDefinesFunction · 0.85
newContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected