mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1168992 - Part 1: Fix up reflection of classes. (r=Waldo)
This commit is contained in:
parent
2df85d08d2
commit
262ef8bc15
@ -1819,8 +1819,8 @@ NodeBuilder::classDefinition(bool expr, HandleValue name, HandleValue heritage,
|
||||
return callback(cb, name, heritage, block, pos, dst);
|
||||
|
||||
return newNode(type, pos,
|
||||
"name", name,
|
||||
"heritage", heritage,
|
||||
"id", name,
|
||||
"superClass", heritage,
|
||||
"body", block,
|
||||
dst);
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ functionDeclaration = (id, params, body) => Pattern({
|
||||
});
|
||||
classDeclaration = (name) => Pattern({
|
||||
type: "ClassStatement",
|
||||
name: name
|
||||
id: name
|
||||
});
|
||||
variableDeclaration = (decls) => Pattern({
|
||||
type: "VariableDeclaration",
|
||||
|
@ -132,14 +132,14 @@ function superElem(id) {
|
||||
|
||||
function classStmt(id, heritage, body) {
|
||||
return Pattern({ type: "ClassStatement",
|
||||
name: id,
|
||||
heritage: heritage,
|
||||
id: id,
|
||||
superClass: heritage,
|
||||
body: body});
|
||||
}
|
||||
function classExpr(id, heritage, body) {
|
||||
return Pattern({ type: "ClassExpression",
|
||||
name: id,
|
||||
heritage: heritage,
|
||||
id: id,
|
||||
superClass: heritage,
|
||||
body: body});
|
||||
}
|
||||
function classMethod(id, body, kind, static) {
|
||||
|
Loading…
Reference in New Issue
Block a user