Index: test/codegen/expect/sunflower/dom.js |
diff --git a/test/codegen/expect/sunflower/dom.js b/test/codegen/expect/sunflower/dom.js |
index accd3b1e5ea0bec03a406ba4626e23aeeb2bd8d0..1cc753d82da4645a7b3143126bd2ff6047c82e5a 100644 |
--- a/test/codegen/expect/sunflower/dom.js |
+++ b/test/codegen/expect/sunflower/dom.js |
@@ -1,10 +1,14 @@ |
var dom; |
(function(exports) { |
'use strict'; |
+ let name$ = Symbol('name'); |
class JsName extends core.Object { |
+ get name() { |
+ return this[name$]; |
+ } |
JsName(opts) { |
let name = opts && 'name' in opts ? opts.name : null; |
- this.name = name; |
+ this[name$] = name; |
} |
} |
class Overload extends core.Object { |
@@ -17,16 +21,72 @@ var dom; |
let InputElement = HTMLInputElement; |
let CanvasElement = HTMLCanvasElement; |
class RenderingContext extends core.Object {} |
+ let lineWidth = Symbol('lineWidth'); |
+ let lineCap = Symbol('lineCap'); |
+ let lineJoin = Symbol('lineJoin'); |
+ let miterLimit = Symbol('miterLimit'); |
+ let lineDashOffset = Symbol('lineDashOffset'); |
+ let font = Symbol('font'); |
+ let textAlign = Symbol('textAlign'); |
+ let textBaseline = Symbol('textBaseline'); |
class CanvasDrawingStyles extends core.Object { |
CanvasDrawingStyles() { |
- this.lineWidth = null; |
- this.lineCap = null; |
- this.lineJoin = null; |
- this.miterLimit = null; |
- this.lineDashOffset = null; |
- this.font = null; |
- this.textAlign = null; |
- this.textBaseline = null; |
+ this[lineWidth] = null; |
+ this[lineCap] = null; |
+ this[lineJoin] = null; |
+ this[miterLimit] = null; |
+ this[lineDashOffset] = null; |
+ this[font] = null; |
+ this[textAlign] = null; |
+ this[textBaseline] = null; |
+ } |
+ get lineWidth() { |
+ return this[lineWidth]; |
+ } |
+ set lineWidth(value) { |
+ this[lineWidth] = value; |
+ } |
+ get lineCap() { |
+ return this[lineCap]; |
+ } |
+ set lineCap(value) { |
+ this[lineCap] = value; |
+ } |
+ get lineJoin() { |
+ return this[lineJoin]; |
+ } |
+ set lineJoin(value) { |
+ this[lineJoin] = value; |
+ } |
+ get miterLimit() { |
+ return this[miterLimit]; |
+ } |
+ set miterLimit(value) { |
+ this[miterLimit] = value; |
+ } |
+ get lineDashOffset() { |
+ return this[lineDashOffset]; |
+ } |
+ set lineDashOffset(value) { |
+ this[lineDashOffset] = value; |
+ } |
+ get font() { |
+ return this[font]; |
+ } |
+ set font(value) { |
+ this[font] = value; |
+ } |
+ get textAlign() { |
+ return this[textAlign]; |
+ } |
+ set textAlign(value) { |
+ this[textAlign] = value; |
+ } |
+ get textBaseline() { |
+ return this[textBaseline]; |
+ } |
+ set textBaseline(value) { |
+ this[textBaseline] = value; |
} |
} |
class CanvasPathMethods extends core.Object {} |