Skip to content

Commit

Permalink
add includes for constructor argument
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Aug 16, 2022
1 parent bca61b3 commit 0c3373f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/jsm/nodes/core/CodeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import Node from './Node.js';

class CodeNode extends Node {

constructor( code = '', nodeType = 'code' ) {
constructor( code = '', includes = [] ) {

super( nodeType );
super( 'code' );

this.isCodeNode = true;

this.code = code;

this._includes = [];
this._includes = includes;

}

Expand Down
4 changes: 2 additions & 2 deletions examples/jsm/nodes/core/FunctionNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import FunctionCallNode from './FunctionCallNode.js';

class FunctionNode extends CodeNode {

constructor( code = '' ) {
constructor( code = '', includes = [] ) {

super( code );
super( code, includes );

this.keywords = {};

Expand Down

0 comments on commit 0c3373f

Please # to comment.