Add this_arg dumping in parser

This commit is contained in:
Ilmir Usmanov
2014-10-02 19:30:36 +04:00
parent eff5e1a80b
commit af00691d1d
2 changed files with 73 additions and 14 deletions
+26
View File
@@ -0,0 +1,26 @@
// Copyright 2014 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
var i = 0;
function a() {}
a.prototype.b = function() { i++; }
a.prototype.c = function() { this.b(); i++; }
var aa = new a();
aa.c();
assert (i === 2);