From 4667a8c05edd7c40b9b52a5e97222ae66014a946 Mon Sep 17 00:00:00 2001 From: Xun Li Date: Fri, 12 Jul 2019 12:46:56 -0700 Subject: [PATCH] Add missing copyright headers to a few files Summary: A few files are missing the proper copyright headers. Add them. Reviewed By: avp Differential Revision: D16225293 fbshipit-source-id: 09f1ee2a8e413cfd6ba29f09b29f305ba14b0b79 --- test/Parser/es6/generator-error.js | 9 +++++++-- test/Parser/es6/generator.js | 5 +++++ website/docusaurus.config.js | 2 +- website/postprocess.js | 7 +++++++ website/siteConfig.js | 7 +++++++ website/src/pages/index.js | 2 +- website/utils.js | 7 +++++++ 7 files changed, 35 insertions(+), 4 deletions(-) diff --git a/test/Parser/es6/generator-error.js b/test/Parser/es6/generator-error.js index c28baa60a..103f1594e 100644 --- a/test/Parser/es6/generator-error.js +++ b/test/Parser/es6/generator-error.js @@ -1,11 +1,16 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +// +// This source code is licensed under the MIT license found in the LICENSE +// file in the root directory of this source tree. +// // RUN: (! %hermesc -dump-ast -pretty-json %s 2>&1 ) | %FileCheck --match-full-lines %s function *foo(yield) {} -// CHECK:{{.*}}:3:15: error: Unexpected usage of 'yield' as an identifier +// CHECK:{{.*}}:{{.*}}:15: error: Unexpected usage of 'yield' as an identifier // CHECK-NEXT:function *foo(yield) {} // CHECK-NEXT: ^~~~~ function *bar() { var yield = 1; } -// CHECK:{{.*}}:8:23: error: Unexpected usage of 'yield' as an identifier +// CHECK:{{.*}}:{{.*}}:23: error: Unexpected usage of 'yield' as an identifier // CHECK-NEXT:function *bar() { var yield = 1; } // CHECK-NEXT: ^~~~~ diff --git a/test/Parser/es6/generator.js b/test/Parser/es6/generator.js index 85aa129fd..330253680 100644 --- a/test/Parser/es6/generator.js +++ b/test/Parser/es6/generator.js @@ -1,3 +1,8 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +// +// This source code is licensed under the MIT license found in the LICENSE +// file in the root directory of this source tree. +// // RUN: %hermes -dump-ast --pretty-json %s | %FileCheck %s --match-full-lines // CHECK-LABEL: { diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 31afce8b7..df457c41a 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2017-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/website/postprocess.js b/website/postprocess.js index b5fc221f9..915b4f0f5 100644 --- a/website/postprocess.js +++ b/website/postprocess.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + 'use strict'; require('loud-rejection/register'); diff --git a/website/siteConfig.js b/website/siteConfig.js index f9a132f70..d436364f0 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const {baseUrlPattern} = require('./utils'); const isBuilding = process.env.npm_lifecycle_script diff --git a/website/src/pages/index.js b/website/src/pages/index.js index 720095b85..f9863e313 100644 --- a/website/src/pages/index.js +++ b/website/src/pages/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2017-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/website/utils.js b/website/utils.js index 6c6c26a19..da6614bb4 100644 --- a/website/utils.js +++ b/website/utils.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const path = require('path'); const fs = require('fs-extra');