Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Aug 27, 2025

Fix #13323.

Make semantic raise errors for the following illegal super uses:

o = {
  foo: function() {
    super.foo;
  },

  bar() {
    return function() {
      super.bar;
    };
  },

  [ function() { super.qux; } ]() {},

  get [ function() { super.bing; } ]() {},

  set [ function() { super.bong; } ](v) {},
};

@github-actions github-actions bot added A-semantic Area - Semantic C-bug Category - Bug labels Aug 27, 2025
Copy link
Member Author

overlookmotel commented Aug 27, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 27, 2025

CodSpeed Instrumentation Performance Report

Merging #13325 will improve performances by 13.33%

Comparing 08-27-fix_semantic_flag_super_in_function_inside_objectexpression_ (fd3233c) with main (84a584c)1

Summary

⚡ 1 improvements
✅ 37 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
mangler[cal.com.tsx] 3.8 ms 3.4 ms +13.33%

Footnotes

  1. No successful run was found on main (fd3233c) during the generation of this report, so 84a584c was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@overlookmotel overlookmotel force-pushed the 08-27-fix_semantic_flag_super_in_function_inside_objectexpression_ branch 2 times, most recently from e400201 to d79d904 Compare August 27, 2025 13:24
@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Aug 29, 2025
Copy link
Member

Dunqing commented Aug 29, 2025

Merge activity

  • Aug 29, 9:49 AM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 29, 9:49 AM UTC: Dunqing added this pull request to the Graphite merge queue.
  • Aug 29, 9:50 AM UTC: The Graphite merge queue couldn't merge this PR because it had merge conflicts.
  • Aug 29, 12:00 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 29, 12:00 PM UTC: This pull request can not be added to the Graphite merge queue. Please try rebasing and resubmitting to merge when ready.
  • Aug 29, 12:00 PM UTC: Graphite disabled "merge when ready" on this PR due to: a merge conflict with the target branch; resolve the conflict and try again..
  • Aug 29, 12:00 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 29, 12:52 PM UTC: The merge label '0-merge' was removed. This PR will no longer be merged by the Graphite merge queue
  • Aug 29, 12:52 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 29, 1:05 PM UTC: Graphite rebased this pull request, because this pull request is set to merge when ready.
  • Aug 29, 1:10 PM UTC: Boshen added this pull request to the Graphite merge queue.
  • Aug 29, 1:15 PM UTC: Merged by the Graphite merge queue.

@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 29, 2025
@graphite-app graphite-app bot changed the base branch from 08-27-refactor_semantic_clarify_logic_when_checking_super_ to graphite-base/13325 August 29, 2025 09:50
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Aug 29, 2025
@Boshen Boshen added 0-merge Merge with Graphite Merge Queue and removed 0-merge Merge with Graphite Merge Queue labels Aug 29, 2025
@overlookmotel overlookmotel force-pushed the 08-27-fix_semantic_flag_super_in_function_inside_objectexpression_ branch from d79d904 to f7d3237 Compare August 29, 2025 13:04
@overlookmotel overlookmotel changed the base branch from graphite-base/13325 to main August 29, 2025 13:04
@overlookmotel
Copy link
Member Author

Graphite got confused. Have manually rebased on main. It should merge now.

…3325)

Fix #13323.

Make semantic raise errors for the following illegal `super` uses:

```js
o = {
  foo: function() {
    super.foo;
  },

  bar() {
    return function() {
      super.bar;
    };
  },

  [ function() { super.qux; } ]() {},

  get [ function() { super.bing; } ]() {},

  set [ function() { super.bong; } ](v) {},
};
```
@graphite-app graphite-app bot force-pushed the 08-27-fix_semantic_flag_super_in_function_inside_objectexpression_ branch from f7d3237 to fd3233c Compare August 29, 2025 13:10
@graphite-app graphite-app bot merged commit fd3233c into main Aug 29, 2025
24 checks passed
@graphite-app graphite-app bot deleted the 08-27-fix_semantic_flag_super_in_function_inside_objectexpression_ branch August 29, 2025 13:15
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-semantic Area - Semantic C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

semantic: does not flag illegal super in various positions in object literals

4 participants