Skip to content

Commit f44af3f

Browse files
committed
lint
1 parent d31c03e commit f44af3f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/javascript-kernel/src/executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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() {

packages/javascript-kernel/src/kernel.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)