File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
packages/javascript-kernel/src Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ export class JavaScriptExecutor {
403403
404404 // Inject built-in functions from 'this' (the iframe window when called)
405405 // This is needed because new Function() scopes to parent window
406- const builtinsCode = ` const { display, console } = this;` ;
406+ const builtinsCode = ' const { display, console } = this;' ;
407407
408408 const asyncFunction = new Function ( `
409409 const afunc = async function() {
Original file line number Diff line number Diff line change @@ -369,15 +369,14 @@ export class JavaScriptKernel extends BaseKernel implements IKernel {
369369 }
370370
371371 const executor = this . _executor ;
372- const kernel = this ;
373372
374373 // Create display function that uses executor's getMimeBundle
375374 // and calls kernel's displayData directly
376375 const display = ( obj : any , metadata ?: Record < string , any > ) => {
377376 const data = executor . getMimeBundle ( obj ) ;
378- kernel . displayData (
377+ this . displayData (
379378 { data, metadata : metadata ?? { } , transient : { } } ,
380- kernel . parentHeader
379+ this . parentHeader
381380 ) ;
382381 } ;
383382
You can’t perform that action at this time.
0 commit comments