diff options
Diffstat (limited to 'src/html.js')
-rw-r--r-- | src/html.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/html.js b/src/html.js index 3bec4269..3b399079 100644 --- a/src/html.js +++ b/src/html.js @@ -352,12 +352,13 @@ export class Tag { #traceError = null; constructor(tagName, attributes, content) { - this.tagName = tagName; - this.attributes = attributes; - this.content = content; - + this.tagName = tagName; + this.attributes = attributes; + this.content = content; + if (process.env.DEBUG) { this.#traceError = new Error(); } +} clone() { return Reflect.construct(this.constructor, [ |