api.mjs 546 Bytes
Newer Older
1 2 3 4 5 6
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {LogEntry} from './log.mjs';

export class ApiLogEntry extends LogEntry {
7
  constructor(type, time, name, argument) {
8 9
    super(type, time);
    this._name = name;
10 11 12 13 14 15 16 17 18
    this._argument = argument;
  }

  get name() {
    return this._name;
  }

  get argument() {
    return this._argument;
19
  }
20 21

  static get propertyNames() {
22
    return ['type', 'name', 'argument'];
23
  }
24
}