• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16
17function _inheritsLoose(subClass, superClass) {
18    subClass.prototype = Object.create(superClass.prototype);
19    subClass.prototype.constructor = subClass;
20    _setPrototypeOf(subClass, superClass);
21}
22
23function _setPrototypeOf(o, p) {
24    _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
25      o.__proto__ = p;
26      return o;
27    };
28    return _setPrototypeOf(o, p);
29}
30
31var TemporalAccessor = function () {
32  function TemporalAccessor() {}
33  return TemporalAccessor;
34}();
35
36var Month = function (_TemporalAccessor) {
37  _inheritsLoose(Month, _TemporalAccessor);
38  function Month(value, name) {
39    var _this;
40    _this = _TemporalAccessor.call(this) || this;
41    _this._value = value;
42    _this._name = name;
43    return _this;
44  }
45  var _proto = Month.prototype;
46  _proto.value = function value() {
47    return this._value;
48  };
49  return Month;
50}(TemporalAccessor);
51
52function nodeopt() {
53    new Month(1, 'January');
54}
55
56nodeopt();
57print(ArkTools.isAOTCompiled(nodeopt))
58print(ArkTools.isAOTDeoptimized(nodeopt))