Skip to content

Commit

Permalink
Script uses Numbas.jme.builtinScope if no scope given
Browse files Browse the repository at this point in the history
  • Loading branch information
christianp committed Dec 3, 2024
1 parent 02b8244 commit 1c8472e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/scripts/jme-variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ jme.variables.note_script_constructor = function(construct_scope, process_result
*/
function Script(source, base, scope) {
this.source = source;
scope = construct_scope(scope);
scope = construct_scope(scope || Numbas.jme.builtinScope);
try {
var notes = source.split(/\n(\s*\n)+/);
var ntodo = {};
Expand Down

0 comments on commit 1c8472e

Please sign in to comment.