| Index: compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java
|
| diff --git a/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java b/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java
|
| index 94a479721841790dd84a7353bb300fd281a59913..87ae13592b62927c983f588aeb5f2ec2b3fdcd55 100644
|
| --- a/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java
|
| +++ b/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java
|
| @@ -1037,11 +1037,9 @@ public class GenerateJavascriptAST {
|
| // Add the arguments to the constructor invocation. Note that the constructor call is still
|
| // missing the 'tmp' variable. We will add it later.
|
| List<DartParameter> params = x.getFunction().getParams();
|
| - List<JsName> jsArgNames = new ArrayList<JsName>();
|
| for (DartParameter p : params) {
|
| // TODO(ngeoffray): We should actually copy the arguments. See b/4424659.
|
| JsName argName = getJsName(p.getNormalizedNode().getSymbol());
|
| - jsArgNames.add(argName);
|
| constructorInvocation.getArguments().add(argName.makeRef());
|
| }
|
|
|
| @@ -1060,16 +1058,6 @@ public class GenerateJavascriptAST {
|
| addInitializers(x, factoryFunction, tempVar);
|
| rtt.maybeAddClassRuntimeTypeToConstructor(classElement, factoryFunction, tempVar.makeRef());
|
| JsNew jsNew = new JsNew(curClassJsName.makeRef());
|
| - if (classElement.getNativeName() != null && x.getFunction().getBody() == null) {
|
| - /*
|
| - * For native classes with bodyless constructors, we pass the user-declared arguments of
|
| - * the factory method to the native "new" expression.
|
| - */
|
| - List<JsExpression> newArguments = jsNew.getArguments();
|
| - for (JsName jsArgName : jsArgNames) {
|
| - newArguments.add(jsArgName.makeRef());
|
| - }
|
| - }
|
| factoryFunction.getBody().getStatements().add(0, AstUtil.newVar(x, tempVar, jsNew));
|
| }
|
|
|
|
|